package controller.dictionary;

import mapper.dictionary.DictionaryMapper;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import pojo.Dictionary;

import javax.annotation.Resource;
import java.util.List;
@Controller
@RequestMapping("/dictionary")
public class DictionaryController {
    @Resource
private DictionaryMapper dictionaryMapper;
    //后台管理查询的所属平台
    @RequestMapping("/getflatformName")
    public String getflatformName(Model model){
       List<Dictionary> list2=dictionaryMapper.getflatformName();
        model.addAttribute("list2",list2);
        return "audit";
    }

    //前台开发者查询的所属状态
    @RequestMapping("/getstatusName")
    public String getstatusName(Model model){
        List<Dictionary> list2=dictionaryMapper.getstatusName();
        model.addAttribute("list2",list2);
        return "userKaiaudit";
    }


    //前台开发者查询的所属平台
    @RequestMapping("/getflatformNameUser")
    public String getflatformNameUser(Model model){
        List<Dictionary> list3=dictionaryMapper.getflatformName();
        model.addAttribute("list3",list3);
        return "userKaiaudit";
    }

    //前台开发者新增的所属平台
    @RequestMapping("/getflatformNameadd")
    public String getflatformNameadd(Model model){
        List<Dictionary> list4=dictionaryMapper.getflatformName();
        model.addAttribute("list4",list4);
        return "addAppInfo";
    }

    //前台开发者修改的所属平台
    @RequestMapping("/getflatformNametoUpadte")
    public String getflatformNametoUpadte(Model model){
        List<Dictionary> list4=dictionaryMapper.getflatformName();
        model.addAttribute("list4",list4);
        return "updateAppInfo";
    }
}
